<?php
session_start();
$path=$_SERVER["DOCUMENT_ROOT"]."/Clase/php/FORO/clases/";
if (!isset($_SESSION["USUSARI"])) header ("Location: ../index.php");
require_once ($path."Usuaris.php");
require_once ($path."Tema.php");
$usuari=new Usuaris();
$temes=new Tema();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $_SESSION["USUSARI"];?></title>
<script type="text/javascript" src="../SCRIPTS/javascript.js"></script>
<link rel="stylesheet" type="text/css" href="../CSS/styles.css" />
<script>function goTo(id){window.location="../tema.php?id="+id;}</script>
</head>
<body>
<div class="contenedor">
	<?php include_once("../clases/menu2.php");?>
   <div class="resultat"><div class="respostaItem">Tus temas</div></div>
	<?php echo $temes->printTemesUser();?>
	</div>
</body></html>